import request from '@/utils/request'

// 查询问答分类列表
export function listEssayQuestionType(query) {
  return request({
    url: '/recycle/essayQuestionType/list',
    method: 'get',
    params: query
  })
}

// 查询问答分类详细
export function getEssayQuestionType(id) {
  return request({
    url: '/recycle/essayQuestionType/' + id,
    method: 'get'
  })
}

// 新增问答分类
export function addEssayQuestionType(data) {
  return request({
    url: '/recycle/essayQuestionType',
    method: 'post',
    data: data
  })
}

// 修改问答分类
export function updateEssayQuestionType(data) {
  return request({
    url: '/recycle/essayQuestionType',
    method: 'put',
    data: data
  })
}

// 删除问答分类
export function delEssayQuestionType(id) {
  return request({
    url: '/recycle/essayQuestionType/' + id,
    method: 'delete'
  })
}
